var global = {};

var Page = {

};

var Component = {

};

var App = function(t) {

};

var getApp = function() {
    return {}
};

window.wx = {
    getAccountInfoSync() {
        return  {
            miniProgram: {
                appId: 'o.default.appId',
                envVersion: "release"
            }
        };
    },
    getSystemInfoSync() {
        return {};
    },
    getStorageSync(key) {
        if (key === 'userInfo') {
            return {
                oauthMd5: '30659c87b229cf4e4902265de37559bd'
            }
        }
        return null;
    },
    getStorage() {
        return null;
    },
    onNetworkStatusChange() {

    },
    onAppShow() {

    },
    onAppHide() {

    },
    onKeyboardHeightChange() {

    },
    request(data) {
        // console.log(data)
        var xmlRequest = $.ajax({
          url: data.url,
          method: data.method,
          data: data.data,
          headers: data.header
        });
        console.log('request', arguments);
    },
    setStorage() {

    },
    login(params) {
        if (params.success) {
            params.success({
                data: {
                    code: '123456'
                }
            });
        }
    }
}
